//<![CDATA[
var phimsocplay1 = "http://www.phimdata.com/player.swf";
var phimsocproxy1 = "http://plugins.longtailvideo.com/5/captions/captions.swf,http://www.phimdata.com/new20133/proxy.swf";
var phimsocskin = "";
var sizemobile = "&w=100%&h=100%&width=100%&height=100%";
var onmobile = "";
var chonsv = "0";
var chonsvcl = "1";
var chondl = "0";
var tuchay = "true";
var severl = 'youtube.com,c/,boxphim.info,zing.vn,clip.vn,picasaweb.google.com,phimsoc.p,phimsoc.s,anc.mp4,dailymotion.com,docs.google.com,anc.yl,phimsoc.f,phimsoc.net,phimsoc.e,tudou.com,yucache.net,mp4upload.com,nhaccuatui.com,drama.net/main/swf,viki.com/player,vk.com';
var severt = 'SERVER YOUTUBE,THÔNG BÁO ,SERVER VN 3,SERVER VN 2,SERVER VN,SERVER GOOGLE ,SERVER PICA2,SUB,MP4,SERVER DAILY,SERVER GOOGLE2,SERVER TAP1,PS,PS1,PS2,Tudou,Yucache,Mp4Upload,NCT,Drama,Viki,VK';
var szk = {
   id: {
       home: "Phim",
       link: "anc_data",
       player: "anc_pl",
       dx: "anc_dx",
       sv: "anc_tp",
       logo: ""
   }
}, s = document.createElement("script");
s.id = szk.id.home;
var $_ = function (_0xb2fdx2) {
   return document['getElementById'](_0xb2fdx2);
};
String['prototype']['GetPart'] = function (_0xb2fdx3) {
   var _0xb2fdx4 = new RegExp('(^|&)' + _0xb2fdx3 + '=([^&]*)(&|$)');
   var _0xb2fdx5 = this['substr'](this['indexOf']('?') + 1)['match'](_0xb2fdx4);
   if (_0xb2fdx5 != null) {
       return unescape(_0xb2fdx5[2]);
   };
   return null;
};

function ANCMedia() {
   _lg = szk['id']['logo'];
   dl = szk['id']['link'];
   pl = szk['id']['player'];
   tp = szk['id']['sv'];
   playing = szk['id']['dx'];
   home = szk['id']['home'];

   function _0xb2fdx7() {
       m_data = $_(dl)['innerHTML'];
       r_left = '<div id="r_data" style="display:none !important;" title="Data here !">';
       r_right = '</div>';
       m_data = m_data['replace'](/\<id\>/gi, r_left);
       m_data = m_data['replace'](/\<\/id\>/gi, r_right);
       m_data = m_data['replace'](/\[id\]/gi, r_left);
       m_data = m_data['replace'](/\[\/id\]/gi, r_right);
       $_(dl)['innerHTML'] = m_data;
       m_data = $_('r_data')['innerHTML'];
       return m_data;
   };
   data = _0xb2fdx7();
   l_spi = data['split']('|')['length'];
   l_spk = function (_0xb2fdx2) {
       return data['split']('|')[_0xb2fdx2]['split'](';')['length'];
   };
   d_spi = function (_0xb2fdx2) {
       return data['split']('|')[_0xb2fdx2];
   };
   d_spk = function (_0xb2fdx2, _0xb2fdx8) {
       return data['split']('|')[_0xb2fdx2]['split'](';')[_0xb2fdx8];
   };
   part = new Array();
   pc = ['0', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's'];
   ab = '';
   part_ep = '';
   data_out = '';
   svl = severl;
   svt = severt;
   sv = svl['split'](',');
   ten_sv = svt['split'](',');
  this['Play'] = function () {
       for (var _0xb2fdx9 = 0; _0xb2fdx9 < ten_sv['length']; _0xb2fdx9++) {
           var _0xb2fdxa = ten_sv[_0xb2fdx9]['split']('.')[0];
           if (_0xb2fdxa == '') {
               _0xb2fdxa = home;
           };
         part[_0xb2fdx9] = '  <li class="sev">  ' + _0xb2fdxa + '   </li> ';
       };
       for (var _0xb2fdxb = 0; _0xb2fdxb < l_spi; _0xb2fdxb++) {
           name_ep = d_spk(_0xb2fdxb, 0);
           for (var _0xb2fdxc = 0; _0xb2fdxc < l_spk(_0xb2fdxb); _0xb2fdxc++) {
               link_ep = d_spk(_0xb2fdxb, _0xb2fdxc);
               number_ep = Number(d_spk(_0xb2fdxb, 0));
               number_epp = '';
               if (_0xb2fdxb > 0) {
                   number_epp = Number(d_spk((_0xb2fdxb - 1), 0));
               };
               if (l_spk(_0xb2fdxb) == 2) {
                   ab = '';
                   part_ep = '';
               } else {
                   ab = pc[_0xb2fdxc];
                   part_ep = ' ' + _0xb2fdxc;
               };
               (number_ep) ? name_eppart = name_ep + ab : name_eppart = name_ep + part_ep;
               if (d_spk(_0xb2fdxb, _0xb2fdxc) != '') {
                   for (var _0xb2fdx9 = 0; _0xb2fdx9 < sv['length']; _0xb2fdx9++) {
                       (d_spk(_0xb2fdxb, _0xb2fdxc)['indexOf'](sv[_0xb2fdx9]) != -1) ? part[_0xb2fdx9] += '<li><a class="a_tap" rel="' + home + '' + name_eppart + '" title="' + name_eppart + '" href="?p=' + _0xb2fdxb + '/' + _0xb2fdxc + '/' + name_eppart['replace'](/ /gi, '_') + '' + onmobile + '">&nbsp;' + name_eppart + '&nbsp;</a></li><!--ANCMedia Part-->' : false;
                   };
               };
           };
       };
       data_out += '<div id="list_tap">';
       if (l_spi >= 2) {
           for (var _0xb2fdx9 = 0; _0xb2fdx9 < sv['length']; _0xb2fdx9++) {
               (part[_0xb2fdx9]['indexOf']('ANCMedia') != -1) ? data_out += '<ul id=\'' + _0xb2fdx9 + '\'>' + part[_0xb2fdx9] + '<div style=\'clear:both;\' ></div></ul>' : false;
           };
       } else {
           data_out += '<ul><li class="sev"></li>' + '<li class="ep"><a class="a_tap" rel="' + home + ' Có 1 tập à" title=" Phim chỉ Có 1 tập à" href="javascript:M.Load(\'' + data + '\',\'1Tập\');">1Tập</a></li></ul>';
       };
       data_out += '<div class="clear" /></div>';
       $_(tp)['innerHTML'] = data_out;
   };
 this['Load'] = function (_0xb2fdx2, _0xb2fdx8) {
       obj = '';
       name_ep = '';
       if (_0xb2fdx2['indexOf'](sv[0]) != -1) {
_0xb2fdx2 = _0xb2fdx2['replace'](/\/watch\?v=/gi, '/v/');
_0xb2fdx2 = _0xb2fdx2['replace'](/\&feature=related/gi, '');
obj = DBOj(_0xb2fdx2)[2];
};

if (_0xb2fdx2['indexOf'](sv[23]) != -1) {
_0xb2fdx2 = _0xb2fdx2['replace'](/isharephim\.y/gi, 'http://www.youtube.com/v');
_0xb2fdx2 = _0xb2fdx2['replace'](/\&feature=related/gi, '');
obj = DBOj(_0xb2fdx2)[0];
};
       if (_0xb2fdx2['indexOf'](sv[2]) != -1) {
           _0xb2fdx2 = _0xb2fdx2['replace'](/t\.v/gi, 'http://tv.zing.vn/embed/video');
           obj = DBOj(_0xb2fdx2)[chonsv];
       };
       if (_0xb2fdx2['indexOf'](sv[3]) != -1) {
           _0xb2fdx2 = _0xb2fdx2['replace'](/zing\.vn/gi, 'zing.vn');
           obj = DBOj(_0xb2fdx2)[0];
       };
       if (_0xb2fdx2['indexOf'](sv[4]) != -1) {
           _0xb2fdx2 = _0xb2fdx2['replace'](/http:\/\/[\EMBED|\embed]*,/gi, 'http://clip.vn/embed/');
           obj = DBOj(_0xb2fdx2)[chonsvcl];
       };
       if (_0xb2fdx2['indexOf'](sv[5]) != -1) {
           _0xb2fdx2 = _0xb2fdx2['replace'](/noi\.va/gi, '&');
           obj = DBOj(_0xb2fdx2)[0];
       };
       if (_0xb2fdx2['indexOf'](sv[6]) != -1) {
           _0xb2fdx2 = _0xb2fdx2['replace'](/phimsoc\.p/gi, 'https://picasaweb.google.com');
           _0xb2fdx2 = _0xb2fdx2['replace'](/noi\.va/gi, '&');
           obj = DBOj(_0xb2fdx2)[0];
       };
       if (_0xb2fdx2['indexOf'](sv[7]) != -1) {
         _0xb2fdx2 = _0xb2fdx2['replace'](/phimsoc\.s/gi, 'http:/');
           _0xb2fdx2 = _0xb2fdx2['replace'](/noi\.va/gi, '&');
           obj = DBOj(_0xb2fdx2)[4];
       };
       if (_0xb2fdx2['indexOf'](sv[8]) != -1) {
           _0xb2fdx2 = _0xb2fdx2['replace'](/anc\.mp4/gi, 'http:');
          _0xb2fdx2 = _0xb2fdx2['replace'](/noi\.va/gi, '&');
           obj = DBOj(_0xb2fdx2)[5];
       };
       if (_0xb2fdx2['indexOf'](sv[9]) != -1) {
           _0xb2fdx2 = _0xb2fdx2['replace'](/dailymotion\.com/gi, 'dailymotion.com');
           obj = DBOj(_0xb2fdx2)[chondl];
       };
       if (_0xb2fdx2['indexOf'](sv[10]) != -1) {
           _0xb2fdx2 = _0xb2fdx2['replace'](/docs.google\.com/gi, 'docs.google.com');
           obj = DBOj(_0xb2fdx2)[1];
       };
       if (_0xb2fdx2['indexOf'](sv[11]) != -1) {
           _0xb2fdx2 = _0xb2fdx2['replace'](/anc\.yl/gi, '');
           obj = DBOj(_0xb2fdx2)[1];
       };
       if (_0xb2fdx2['indexOf'](sv[12]) != -1) {
            _0xb2fdx2 = _0xb2fdx2['replace'](/phimsoc\.f/gi, 'http:/');
           obj = DBOj(_0xb2fdx2)[1];
       };
       if (_0xb2fdx2['indexOf'](sv[13]) != -1) {
            _0xb2fdx2 = _0xb2fdx2['replace'](/phimsoc\.net/gi, 'http:/');
          _0xb2fdx2 = _0xb2fdx2['replace'](/noi\.va/gi, '&');
           obj = DBOj(_0xb2fdx2)[5];
       };
       if (_0xb2fdx2['indexOf'](sv[14]) != -1) {
         _0xb2fdx2 = _0xb2fdx2['replace'](/phimsoc\.e/gi, 'http:/');
           obj = DBOj(_0xb2fdx2)[1];
       };
       if (_0xb2fdx2['indexOf'](sv[15]) != -1) {
           _0xb2fdx2 = _0xb2fdx2['replace'](/tudou\.com/gi, 'tudou.com');
           obj = DBOj(_0xb2fdx2)[1];
       };
       if (_0xb2fdx2['indexOf'](sv[16]) != -1) {
           _0xb2fdx2 = _0xb2fdx2['replace'](/yucache\.net/gi, 'yucache.net');
           obj = DBOj(_0xb2fdx2)[5];
       };
       if (_0xb2fdx2['indexOf'](sv[17]) != -1) {
           _0xb2fdx2 = _0xb2fdx2['replace'](/mp4upload\.com/gi, 'mp4upload.com');
           obj = DBOj(_0xb2fdx2)[2];
       };
       if (_0xb2fdx2['indexOf'](sv[18]) != -1) {
           _0xb2fdx2 = _0xb2fdx2['replace'](/nhaccuatui\.com/gi, 'nhaccuatui.com');
           obj = DBOj(_0xb2fdx2)[2];
       };
       if (_0xb2fdx2['indexOf'](sv[19]) != -1) {
            _0xb2fdx2 = _0xb2fdx2['replace'](/drama\.net\/main\/swf/gi, 'drama.net/main/swf');
          _0xb2fdx2 = _0xb2fdx2['replace'](/noi\.va/gi, '&');
           obj = DBOj(_0xb2fdx2)[2];
       };
       if (_0xb2fdx2['indexOf'](sv[20]) != -1) {
           _0xb2fdx2 = _0xb2fdx2['replace'](/viki\.com\/player/gi, 'viki.com/player');
           obj = DBOj(_0xb2fdx2)[1];
       };

       if (_0xb2fdx2['indexOf'](sv[21]) != -1) {
            _0xb2fdx2 = _0xb2fdx2['replace'](/vk\.com/gi, 'vk.com');
          _0xb2fdx2 = _0xb2fdx2['replace'](/noi\.va/gi, '&');
           obj = DBOj(_0xb2fdx2)[1];
       };
       for (var _0xb2fdxd = 22; _0xb2fdxd < sv['length']; _0xb2fdxd++) {
           if (_0xb2fdx2['indexOf'](sv[_0xb2fdxd]) != -1) {
               obj = DBOj(_0xb2fdx2)[0];
           };
       };
       if (Number(_0xb2fdx8)) {
           name_ep = '<span>\►</span> ' + _0xb2fdx8.split('#')[0] + '';
       } else {
           if (_0xb2fdx8['length'] >= 6) {
               name_ep = '<span>\►</span> ' + _0xb2fdx8.split('#')[0] + '';
           } else {
               if (!Number(_0xb2fdx8) && _0xb2fdx8['length'] < 6) {
                   name_ep = '<span>\►</span> ' + _0xb2fdx8.split('#')[0] + '';
               };
           };
       };
       $_(pl)['innerHTML'] = obj;
       $_(playing)['innerHTML'] = name_ep;
   };
   this['Qstr'] = function () {
       str = window['location']['href'];
       part = str.GetPart('p');
       (part == null) ? part = '0/1/' + d_spk(0, 0) + '' : false;
       a = part['split']('/')[0];
       b = part['split']('/')[1];
       c = decodeURI(part['split']('/')[2]);
       (l_spi >= 2) ? this.Load(d_spk(a, b), c) : this.Load(data, 'Full_time');
   };
};
var DBOj = function (_0xb2fdx2) {
   _em = 'type="application/x-shockwave-flash" allowfullscreen="true" allowScriptAccess="always" width="100%" height="469"';
   return obj = ['<embed id="splay" height="469" width="100%" name="flashplayer" src="' + phimsocplay1 + '" FlashVars="plugins=' + phimsocproxy1 + '&proxy.link=' + _0xb2fdx2 + '&autostart=' + tuchay + '&skin=http://8phim.com/player/kleur/kleur.xml" autostart="' + tuchay + '" ' + _em + '   allowfullscreen="true" allowfullscreen/>', '<iframe id="splay"   frameborder="0" scrolling="no" src=' + _0xb2fdx2 + ' ' + _em + ' height="469" width="100%" allowfullscreen="true" />', '<iframe id="splay" height="469" width="100%" src="' + _0xb2fdx2 + '&modestbranding=1&version=3&hl=vi_VN&rel=0&autoplay=1&showsearch=0&iv_load_policy=3&hideInfos=1"  allowfullscreen="true"  frameborder="0" allowfullscreen></iframe>', '<embed id="splay"  height="469" width="100%" src="' + _0xb2fdx2 + '" autostart="' + tuchay + '" ' + _em + ' allownetworking="internal"/>', '<embed type="application/x-shockwave-flash" src="http://player.v1vn.com/xemnghe/player.swf" id="splay" name="jwplayer" bgcolor="#000000" quality="high" allowfullscreen="true" allowfullscreen allowscriptaccess="always" flashvars="file=' + _0xb2fdx2 + '&amp;skin=http://8phim.com/player/kleur/kleur.xml&amp;type=video&amp;autostart=true&amp;captions.color=#EFF15F&amp;captions.fontFamily=Tahoma&amp;captions.fontSize=18&amp;dock=false" width="100%" height="469"/>', '<video id="splay" width="100%" height="469" class="video-js vjs-default-skin" data-setup="{}" controls autoplay><source src="' + _0xb2fdx2 + '" type="video/mp4" allowfullscreen="true"  /></video>', '<iframe id="splay" scrolling="no"  src="' + _0xb2fdx2 + '?autostart=' + tuchay + '"' + _em + ' allowfullscreen="true" />'];
};
M = new ANCMedia();
M.Play();
M.Qstr();
 document.getElementsByTagName("head")[0].appendChild(s);
//]]>